package org.arl.modem.transportARQ;

public class Packet {
   private int packetId;
   private int blockPacketId;
   private int packetSize;
   private byte[] data;
   private boolean status;
   private int seed;
   private int degree;

   public Packet(int packetId, int packetsize, byte[] data) {
      super();
      this.packetId = packetId;
      this.packetSize = packetsize;
      this.data = data;
      this.setStatus(false);
   }

   public Packet(Packet p) {
      this.blockPacketId = p.blockPacketId;
      this.data = p.data;
      this.degree = p.degree;
      this.packetId = p.packetId;
      this.packetSize = p.packetSize;
      this.seed = p.seed;
      this.status = false;
   }

   public Packet(int packetId, int packetsize, byte[] data, int seed, int degree) {
      super();
      this.packetId = packetId;
      this.packetSize = packetsize;
      this.data = data;
      this.setStatus(false);
      this.setSeed(seed);
      this.setDegree(degree);
   }

   public int getPacketId() {
      return packetId;
   }

   public void setPacketId(int packetId) {
      this.packetId = packetId;
   }

   public int getPacketsize() {
      return packetSize;
   }

   public void setPacketsize(int packetsize) {
      this.packetSize = packetsize;
   }

   public byte[] getData() {
      return data;
   }

   public void setData(byte[] data) {
      this.data = data;
   }

   public boolean isStatus() {
      return status;
   }

   public void setStatus(boolean status) {
      this.status = status;
   }

   public int getBlockPacketId() {
      return blockPacketId;
   }

   public void setBlockPacketId(int blockPacketId) {
      this.blockPacketId = blockPacketId;
   }

   public int getSeed() {
      return seed;
   }

   public void setSeed(int seed) {
      this.seed = seed;
   }

   public int getDegree() {
      return degree;
   }

   public void setDegree(int degree) {
      this.degree = degree;
   }
}
